<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * MAPI COA Project
 * index.php
 * @author ranuandra
 *
 * 22 Jul 2011
 * tags
 */
?>

	<table class="datacontent" width="100%">
	<thead>
		<tr>
			<td>
				<div class="title">Data Customer</div>
			</td>
			<td>
				<div class="toolbar">
							
					<a href="<?php echo URL::base()?>productspec/new">+ New</a> 
				</div>
			</td>
		</tr>
	</thead>
</table>
<div>
	<table class="data">
	<thead>
		<tr>
			<th>Customer Name</th>
			<th>Address</th>
			<th>Post Code</th>
			<th>Phone</th>
		</tr>
	</thead>
<?php 
if(isset($datas))
{
	$rowclass = 0;
	foreach($datas as $data)
	{
?>
		<tr class="row<?php echo $rowclass?>">
			<td><?php echo $data->name ?></td>
			<td><?php echo $data->address?></td>
			<td><?php echo $data->postcode?></td>
			<td><?php echo $data->phone ?></td>
		</tr>
<?php 
		$rowclass = 1 - $rowclass;	
	}
}
?>
	</table>
</div>